package aitsm;

import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JTabbedPane;
import javax.swing.SwingConstants;

public class Icon_for_AITSM {
    public Icon_for_AITSM(){        
    }
    public void setIcon(String ImageName, String Title, JTabbedPane jp, int i)
    {
        JLabel jll = new JLabel(Title);
        Icon icon = new ImageIcon(getClass().getResource(ImageName));
        jll.setIcon(icon);
        jp.setTabComponentAt(i, jll);
    }
}
